package com.huopaolan.yohuoshop.Di.Modules;

import com.huopaolan.yohuoshop.Mvp.Contract.MyFragmentContract;
import com.huopaolan.yohuoshop.Mvp.Model.MyFragmentModel;

import javax.inject.Inject;

import dagger.Module;
import dagger.Provides;

@Module
public class MyFragmentModules {
    private MyFragmentContract.MyIView iView;

    @Inject
    public MyFragmentModules(MyFragmentContract.MyIView iView) {
        this.iView = iView;
    }

    @Provides
    public MyFragmentContract.MyIView providerIView() {
        return iView;
    }

    @Provides
    public MyFragmentContract.MyIModel providerIModel() {
        return new MyFragmentModel();
    }
}
